package com.corona.game;

import com.corona.Game;

/* compiled from: Action.java */
/* access modifiers changed from: package-private */
/* loaded from: pokewilds.jar:com/pkmngen/game/RemoveAction.class */
public class RemoveAction extends Action {
    Action action;

    public RemoveAction(Action action, Action nextAction) {
        super(new Object[0]);
        this.nextAction = nextAction;
        this.action = action;
    }

    @Override // com.corona.game.Action
    public void step(Game game) {
        game.actionStack.remove(this);
        game.actionStack.remove(this.action);
        game.insertAction(this.nextAction);
    }
}
